<?php
require('../../lib/base.php');
$base=new base(array('web','mail'));
$config=$base->model('config');
$tpl=reset($config->GConfig(array('where'=>array('label='=>'mail','name='=>'activation'))));
$tpl['value']=preg_replace('!s:(\d+):"(.*?)";!se', "'s:'.strlen('$2').':\"$2\";'",$tpl['value']);
$tpl=unserialize($tpl['value']);
$email=$base->library('email');
$email->IsSMTP();
$email->AddAddress('136009268@qq.com','测试');
$email->Subject ='测试';
$email->MsgHTML($config->parse($tpl['content'],array('name'=>'ddd','code'=>'wwww')));
$email->Send();
?>